package com.ruoyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.UserRegionBindingsMapper;
import com.ruoyi.user.domain.UserRegionBindings;
import com.ruoyi.user.service.IUserRegionBindingsService;

/**
 * 用户区域绑定Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
@Service
public class UserRegionBindingsServiceImpl implements IUserRegionBindingsService 
{
    @Autowired
    private UserRegionBindingsMapper userRegionBindingsMapper;

    /**
     * 查询用户区域绑定
     * 
     * @param bindingId 用户区域绑定主键
     * @return 用户区域绑定
     */
    @Override
    public UserRegionBindings selectUserRegionBindingsByBindingId(String bindingId)
    {
        return userRegionBindingsMapper.selectUserRegionBindingsByBindingId(bindingId);
    }

    /**
     * 查询用户区域绑定列表
     * 
     * @param userRegionBindings 用户区域绑定
     * @return 用户区域绑定
     */
    @Override
    public List<UserRegionBindings> selectUserRegionBindingsList(UserRegionBindings userRegionBindings)
    {
        return userRegionBindingsMapper.selectUserRegionBindingsList(userRegionBindings);
    }

    /**
     * 新增用户区域绑定
     * 
     * @param userRegionBindings 用户区域绑定
     * @return 结果
     */
    @Override
    public int insertUserRegionBindings(UserRegionBindings userRegionBindings)
    {
        return userRegionBindingsMapper.insertUserRegionBindings(userRegionBindings);
    }

    /**
     * 修改用户区域绑定
     * 
     * @param userRegionBindings 用户区域绑定
     * @return 结果
     */
    @Override
    public int updateUserRegionBindings(UserRegionBindings userRegionBindings)
    {
        return userRegionBindingsMapper.updateUserRegionBindings(userRegionBindings);
    }

    /**
     * 批量删除用户区域绑定
     * 
     * @param bindingIds 需要删除的用户区域绑定主键
     * @return 结果
     */
    @Override
    public int deleteUserRegionBindingsByBindingIds(String[] bindingIds)
    {
        return userRegionBindingsMapper.deleteUserRegionBindingsByBindingIds(bindingIds);
    }

    /**
     * 删除用户区域绑定信息
     * 
     * @param bindingId 用户区域绑定主键
     * @return 结果
     */
    @Override
    public int deleteUserRegionBindingsByBindingId(String bindingId)
    {
        return userRegionBindingsMapper.deleteUserRegionBindingsByBindingId(bindingId);
    }
}
